﻿
using System;

namespace HuaXingSDK
{
    public static class HXConfigs
    {
        public static string 渠道标识 { get; set; }

        public static string 商户编号 { get; set; }

        public static string 商户名称 { get; set; }

        public static string 请求地址 { get; set; }

        public static string TripleDESKey { get; set; }

        public static string RSAPublicKey { get; set; }
         
        public static string RSAPrivateKey { get; set; }

        public static int MsgHeadLength { get; set; }

        public static int MsgSecLength { get; set; }

        public static Func<HXRequest, string> 创建请求流水号 { get; set; }

        public static Func<HXRequest, IHttpPost> CreatePoster { get; set; }

        static HXConfigs()
        {
            创建请求流水号 = req => Uilts.GetId(11);
            MsgHeadLength = 16;
            MsgSecLength = 8;
            CreatePoster = req => new HttpPost();
        }
    }
}
